package com.h2cloud;

/**
 * @Package: com.h2cloud
 * @ClassName: MyClass
 * @Author: h2cloud
 * @CreateTime: 2024/4/21 11:52 上午
 * @Description:
 */
interface Interface1 {
	void test();
}

interface Interface2 {
	void test();
}

public class MyClass implements Interface1, Interface2 {
	@Override
	public void test() {
		System.out.println("Implemented from MyClass");
	}

	public static void main(String[] args) {
		MyClass obj = new MyClass();
		obj.test(); // 编译错误：Reference to 'test' is ambiguous
	}
}
